#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include "..//include//n_ary.h"

NODE insert_rear_ll(char str[],char path[],NODE first){
  NODE temp;
  NODE cur;
 
  temp=(NODE)malloc(sizeof(struct LL));
  strcpy(temp->entry,str);
  strcpy(temp->abspath,path);
  temp->next=NULL;
  
  if(first==NULL) return temp;
  
  cur=first;
  while(cur->next!=NULL) cur=cur->next;
  
  cur->next=temp;
  return first;
}
  

NODE display_ll(NODE first,int count){
  //printf("display_ll \n");
  NODE cur;
  cur=first;
  while(count){
    printf("%s \n",cur->entry);
    cur=cur->next;
    count=count-1;
  }

//printf("Done \n");

}
